#coding=utf-8
#author：zhujingyuan

from Config.config import environmentData
from Params.OracleParas import customerid,oldcardid2,oldmobile2,promotionid,sku

from Config.config import environmentData
import Config.config as cf
import urllib3
urllib3.disable_warnings()
# cf.InitEnvironmentData(cf.TestAddress,env='TestEnv')   #调试用

openid=environmentData['OpenId']

cardid=environmentData['CardId']

mobile='15067437090'
#修改个人资料
changeuserinfo={
                 'openid':openid,
                 'name':'朱静源',
                 'birthday':'2021-09-25',
                 'email':'525844122A@qq.com',
                 'province':'310000',
                 'city':'310010',
                 'country':'310011',
                 'address':'盛龙路广宇西城美墅'
}
#会员收货地址列表
addressadd={
                 "Customeraddressid": 0,
                 "Customerid": customerid,
                 "Province": "330000",
                 "City": "330100",
                 "Country": "330106",
                 "Propertyinfo": "西城美墅",
                 "Address": "盛龙路广宇西城美墅",
                 "Isdefault": 0,
                 "Receivername": "朱静源",
                 "Familytelephone": "",
                 "Postcode": "",
                 "Mobilephone": "15067437090"
}
#关联品牌卡
relatedcard={
               "openid": openid,
               "brand": 'II',
               "cardNo": oldcardid2,
               "mobile": oldmobile2
}

#用户注册
register={
  "openid": openid,
  "mobile": mobile,
  "inviterMobile": "",
  "province": "310000",
  "city": "310010",
  "country": "310011",
  "storeCode": "1205",
  "userName": "朱静源",
  "birthday": "1990年9月25日",
  "sex": "女",
  "address": "西湖区西城美墅1幢2104",
  "plan": "暂无计划",
  "square": "50-100",
  "housetype": "套房",
  "haschild": "怀孕中"
}

location={
  "latitude": '30.3105800450833',
  "longitude": '120.067662466965',
  "hasCode": 'true'
}

Sms={
    'mobile':mobile,
    'type':'register'
}

AddCartUrl = 'openid='+openid+'&pid='+promotionid+'&sku='+sku+'&num=1&ctn=B&isChecked=false'

EditQuantityUrl = 'cartsgoodid='+sku+'&num=3'

UpdateCheckedUrl = 'cartsgoodids='+sku+''

DeleteGoodsUrl = 'cartsgoodids='+sku+''
#加入购物车
AddCart={
    'openid': openid,
    'pid': promotionid,
    'sku': sku,
    'num': 1,
    'ctn': 'B',
    'isChecked': 'false'
}
#Activity领取优惠券
SendInvitedActivityTicket={
    "mobile": mobile,
    "activityId": ""
}

#Coupon赠送优惠券
Present={
    "openid": openid,
    "mobile": 13388659194,
    "codes": [
        ""
    ]
}


























